package com.aaa.stock.controller.invent;

import com.aaa.entity.InventoryLog;
import com.aaa.stock.service.invent.InventoryService;
import com.aaa.stock.vo.InventoryVo;
import com.aaa.stock.vo.ProducerVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/stock/invent/inv")
public class StockInventController {
    @Autowired
    private InventoryService inventoryService;

    @PostMapping("findInvAll/{currentPage}/{pageSize}")
    public Result<IPage<InventoryLog>> getInv(
            @PathVariable Integer currentPage,
            @PathVariable Integer pageSize,
            @RequestBody InventoryVo inventoryVo
    ){
        return inventoryService.findInvAll(currentPage,pageSize,inventoryVo);
    }
}
